﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging;

namespace RequestLog_State_Middleware.Controllers
{
    [Route("api/[controller]")]
    [ApiController]
    public class TestController : ControllerBase
    {
        private readonly ILogger<TestController> _logger;

        public TestController(ILogger<TestController> logger)
        {
            _logger = logger;
        }

        [HttpGet("GetTest")]
        public string GetTest()
        {
            _logger.LogInformation("GetTest");
            return "GetTest";
        }

        [HttpPost("PostTest")]
        public string PostTest()
        {
            _logger.LogInformation("PostTest");
            return "PostTest";
        }
    }
}